import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { BaseKeywordPageInput, SqlSugarPagedList, BaseBillCancelInput } from '/@/api/BaseDto';

import { InvYueXueAddInput } from './dto/InvYueXueAddInput';
import { InvYueXueUpdateInput } from './dto/InvYueXueUpdateInput';
import { InvYueXueOutput } from './dto/InvYueXueOutput';
import { InvYueXueMingXi } from './dto/InvYueXueMingXi';
import { InvYueXueZhuCongOutput } from './dto/InvYueXueZhuCongOutput';

export type { InvYueXueAddInput, InvYueXueUpdateInput, InvYueXueOutput, InvYueXueZhuCongOutput, InvYueXueMingXi };

const service = 'InvYueXue/'; // 要写后面的斜杠, 不要写前面的斜杠

export const InvYueXueApi = {
	page: (data: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<InvYueXueOutput>>(service + 'page', data);
	},
	get: (id: string) => {
		return axiosGet<InvYueXueZhuCongOutput>(service + `get/${id}`);
	},
	add: (data: InvYueXueAddInput) => {
		return axiosPost<InvYueXueOutput>(service + 'add', data);
	},
	cancel: (data: BaseBillCancelInput) => {
		return axiosPost<boolean>(service + 'cancel', data);
	},
	
};
